<?php $messages = Message::getMessages(); ?>

<?php if($messages): ?>
<?php foreach ($messages as $type => $messages): ?>
<?php if(count($messages) >= 1) : ?>
<div class="message <?php echo $type; ?>">
<?php foreach($messages as $message) : ?>
<ul>
<li><?php echo $message; ?></li>
</ul>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php endforeach; ?>

<?php endif; ?>


